# @algorithm @lc id=2123 lang=python3 weekname=weekly-contest-257
# @title the-number-of-weak-characters-in-the-game


from cn.Python3.mod.preImport import *
# @test([[5,5],[6,3],[3,6]])=0
# @test([[2,2],[3,3]])=1
# @test([[1,5],[10,4],[4,3]])=1
class Solution:
    def numberOfWeakCharacters(self, properties: List[List[int]]) -> int: